use warp::Filter;

pub mod status;
pub mod basic;

pub async fn start_server(ip: [u8; 4], port: u16) {
	warp::serve(
		warp::path!().map(status::status)
		.or(warp::path!("hello" / String).map(status::hello))
	).run((ip, port)).await;
}
